package org.wltea.analyzer.dic;

/**
 * Create by 褚夫强 on 2024/8/14
 */

import org.wltea.analyzer.help.ESPluginLoggerFactory;


/**
 * @author
 * @version 1.0
 * @date 2024/08/12 下午7:21
 * <p>Copyright: Copyright (c) 2024<p>
 */
public class HotDictReloadThread implements Runnable {

    private static final org.apache.logging.log4j.Logger logger = ESPluginLoggerFactory.getLogger(HotDictReloadThread.class.getName());

    @Override
    public void run() {
        while (true) {
            logger.info("[======HotDictReloadThread======] begin to reload hot dict from dataBase......");
            Dictionary.getSingleton().reLoadMainDict();
        }
    }
}